﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
using System.Text;



public partial class trangchu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void btnAddToCart_Click(object sender, EventArgs e)
    {
        ShoppingCart Cart = (ShoppingCart)Session["ShoppingCart"];
        LinkButton btn = (LinkButton)sender;
        int ProductID = int.Parse(btn.CommandArgument);
        Cart.Add(ProductID, 1);

        ASP.masterpage_master master = (ASP.masterpage_master)this.Master;
        master.RefreshShoppingCartInfo();
    }
}
